
using AutoMapper;
using Ixyu.Base.Configs;
using Ixyu.Base.Configs.Dtos;
using Ixyu.Base.Dictionaries;
using Ixyu.Base.Dictionaries.Dtos;

namespace Ixyu.Base.Dictionaries.Mapper
{

	/// <summary>
    /// 配置AbpDictionary的AutoMapper
    /// </summary>
	internal static class AbpDictionaryMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <AbpDictionary,AbpDictionaryListDto>();
            configuration.CreateMap <AbpDictionaryListDto,AbpDictionary>();

            configuration.CreateMap <AbpDictionaryEditDto,AbpDictionary>();
            configuration.CreateMap <AbpDictionary,AbpDictionaryEditDto>();

            configuration.CreateMap<AbpConfig, AbpConfigInput>();
            configuration.CreateMap<AbpConfigInput, AbpConfig>();
        }
	}
}
